package de.tempel.fittslaw.regression;

public class Line {

	private Double a;
	private Double b;

	public Line(Double a, Double b) {
		this.a = a;
		this.b = b;
	}

	public Double yForX(Double x) {
		return a + x * b;
	}

	public Double getA() {
		return a;
	}

	public void setA(Double a) {
		this.a = a;
	}

	public Double getB() {
		return b;
	}

	public void setB(Double b) {
		this.b = b;
	}

	@Override
	public String toString() {
		return "Line [a=" + a + ", b=" + b + "]";
	}

}
